#ifndef _CAN_H_
#define _CAN_H_
#include "stm32f10x.h"

extern CAN_InitTypeDef        CAN_InitStructure;

extern CanRxMsg RxMessage;
extern CanTxMsg CAN1_TxMessage[8];
extern CanTxMsg CAN2_TxMessage[8];

extern u16	CAN1_TXPointer;		
extern u16	CAN2_TXPointer;		

extern u16	CAN1_AircdRxResetTime1;
extern u16	CAN2_AircdRxResetTime1;

void CAN_Config(void);
void Init_RxMes(CanRxMsg *RxMessage);
void Clear_TransmitMailbox(void);

void CAN1_RXDataAPP(void);
void CAN1_TXPackage(void);
void CAN1_PDO1Package(CanTxMsg *TxMessage);

void CAN2_RXDataAPP(void);
void CAN2_TXPackage(void);
void CAN2_PDO1Package(CanTxMsg *TxMessage);
void CAN2_PDO2Package(CanTxMsg *TxMessage);

#endif


